// Add this to test your Transform decorator
import { TChain } from '@/api/hi_api';

// Test 1: Using your mock method
console.log("=== Testing Mock Chain ===");
const mockChain = TChain.mock("debug-test");
console.log("P is Map:", mockChain.L[0].P instanceof Map);
console.log("P get projectId:", mockChain.L[0].P.get("projectId"));

// Test 2: Using fromPlain (which uses plainToInstance)
console.log("=== Testing fromPlain ===");
const plainData = {
    cid: "debug-plain",
    L: [{
        klass: "InitialInput",
        notes: "test",
        P: { "projectId": "test-id", "projectName": "test-name" }
    }]
};
const plainChain = TChain.fromPlain(plainData);
console.log("From plain P is Map:", plainChain.L[0].P instanceof Map);
console.log("From plain P get projectId:", plainChain.L[0].P.get("projectId"));
